<template>
	<view>
		<view style="border-radius: 20rpx;width: 690rpx;margin-left: 10rpx;margin-top: 20rpx;background-color: #ffffff;padding: 20rpx;" v-for="(item,index) in userlist" :key='index'>
			<view class="name" style="font-weight: bold;margin-top: 0rpx;">结算日期：{{item.time}}</view>
			<view class="name" style="margin-top: 40rpx;">用户昵称：{{item.name}}</view>
			<view class="name">手机号码：{{item.phone}}</view>
			<view class="name">收益：{{item.sum}}</view>
		</view>
	</view>
</template>

<script>

	export default {
		data() {
			return {
				userlist:[]
			}
		},
		onLoad(){
			this.getUserinfo();
		},
		
		methods: {
			getUserinfo(){
				let userinfo = uni.getStorageSync('userinfo');
				uni.showLoading({
					title:"加载中"
				})
				
				this.$api.interfaceApi('getdaymoney')({
					'uid': userinfo.id,
					//'admin':App.globalData.sys
				}).then(res=>{
					uni.hideLoading()
					this.userlist = res.data
				})
			},
		}
	}
</script>

<style>
	.name{
		margin-top: 20rpx;
		margin-left: 10rpx;
	}
</style>